package com.jic.product.mapper;

import com.jic.product.entity.Warehouse;
import com.jic.product.manage.request.WarehouseRequest;
import com.jic.product.manage.response.WarehouseResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 仓库表
 * @author :
 * @email :
 * @since : 2020-01-16 04:47:43
 * @version : v1.0.0
 */
@Mapper
public interface  WarehouseMapper {

    long insert(Warehouse warehouse);

    long delete(Long id);

    long update(Warehouse warehouse);

    Warehouse queryByPrimaryKey(Long id);

    List<Warehouse> query(Warehouse warehouse);

    List<WarehouseResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("warehouse") WarehouseRequest warehouse);

    long queryPageCount(WarehouseRequest warehouse);
}
